<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Demojs2</title>
</head>
<body>
    <script>
        document.write("<h1>这是第一个标题</h1>");
        document.write("<p>这是第一个段落</p>");
    </script>
</body>
</html>